<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>gbmath: gbmath::point2 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gbmath
   &#160;<span id="projectnumber">v0.051</span>
   </div>
   <div id="projectbrief">c++ math library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegbmath.html">gbmath</a></li><li class="navelem"><a class="el" href="classgbmath_1_1point2.html">point2</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classgbmath_1_1point2-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">gbmath::point2 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>describes a point/coordinate/position in 3-dimensional space. Level higher than the vector  
 <a href="classgbmath_1_1point2.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="point2_8h_source.html">point2.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0ce527b5e3c4a46d38737cde65c3e82a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#a0ce527b5e3c4a46d38737cde65c3e82a">point2</a> ()</td></tr>
<tr class="separator:a0ce527b5e3c4a46d38737cde65c3e82a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47511f05f6ffebdfeeb7f03816d806e5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#a47511f05f6ffebdfeeb7f03816d806e5">point2</a> (const <a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;p)</td></tr>
<tr class="separator:a47511f05f6ffebdfeeb7f03816d806e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8a41494f3ab88e35b94f0127398d591"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#ac8a41494f3ab88e35b94f0127398d591">point2</a> (const float <a class="el" href="classgbmath_1_1point2.html#af072417656d83d7e4e8e0bfd85c2e09f">x</a>, const float <a class="el" href="classgbmath_1_1point2.html#af935ad3379bb0a7c14cf784be871f939">y</a>)</td></tr>
<tr class="separator:ac8a41494f3ab88e35b94f0127398d591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ef795f8d695bfdb3efd03982c8c0da3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#a8ef795f8d695bfdb3efd03982c8c0da3">operator const float *</a> () const </td></tr>
<tr class="separator:a8ef795f8d695bfdb3efd03982c8c0da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a826e2edfda0396564a66ab43e7423703"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#a826e2edfda0396564a66ab43e7423703">operator=</a> (const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;v)</td></tr>
<tr class="separator:a826e2edfda0396564a66ab43e7423703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af072417656d83d7e4e8e0bfd85c2e09f"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#af072417656d83d7e4e8e0bfd85c2e09f">x</a> () const </td></tr>
<tr class="separator:af072417656d83d7e4e8e0bfd85c2e09f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af935ad3379bb0a7c14cf784be871f939"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#af935ad3379bb0a7c14cf784be871f939">y</a> () const </td></tr>
<tr class="separator:af935ad3379bb0a7c14cf784be871f939"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae53a981e668209ac088cee240a4aade3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#ae53a981e668209ac088cee240a4aade3">moveAlongNormal</a> (const <a class="el" href="classgbmath_1_1normal2.html">normal2</a> &amp;normal, float distance)</td></tr>
<tr class="separator:ae53a981e668209ac088cee240a4aade3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adddf2b1ba25032a168cf16a4c60be0c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgbmath_1_1normal2.html">normal2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#adddf2b1ba25032a168cf16a4c60be0c3">direction_to</a> (const <a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;_to) const </td></tr>
<tr class="separator:adddf2b1ba25032a168cf16a4c60be0c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dc1d5a9cba221c46824f11f519309b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#a8dc1d5a9cba221c46824f11f519309b5">move_to</a> (const <a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;_to, float dist)</td></tr>
<tr class="separator:a8dc1d5a9cba221c46824f11f519309b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9c6845a4c758e3a08c6057fadba6e7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#ae9c6845a4c758e3a08c6057fadba6e7e">transform</a> (const <a class="el" href="structgbmath_1_1mat22.html">mat22</a> &amp;m)</td></tr>
<tr class="separator:ae9c6845a4c758e3a08c6057fadba6e7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a49cf0663b544b193243cacf21cea5e9c"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#a49cf0663b544b193243cacf21cea5e9c">_x</a></td></tr>
<tr class="separator:a49cf0663b544b193243cacf21cea5e9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb5e9216106c0197cd952e23d0bb9cd3"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1point2.html#acb5e9216106c0197cd952e23d0bb9cd3">_y</a></td></tr>
<tr class="separator:acb5e9216106c0197cd952e23d0bb9cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>describes a point/coordinate/position in 3-dimensional space. Level higher than the vector </p>

<p>Definition at line <a class="el" href="point2_8h_source.html#l00021">21</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0ce527b5e3c4a46d38737cde65c3e82a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::point2::point2 </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00030">30</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a class="anchor" id="a47511f05f6ffebdfeeb7f03816d806e5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::point2::point2 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00031">31</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac8a41494f3ab88e35b94f0127398d591"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::point2::point2 </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00032">32</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="adddf2b1ba25032a168cf16a4c60be0c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgbmath_1_1normal2.html">normal2</a> gbmath::point2::direction_to </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;&#160;</td>
          <td class="paramname"><em>_to</em>)</td><td></td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8cpp_source.html#l00014">14</a> of file <a class="el" href="point2_8cpp_source.html">point2.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8dc1d5a9cba221c46824f11f519309b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgbmath_1_1point2.html">point2</a> &amp; gbmath::point2::move_to </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1point2.html">point2</a> &amp;&#160;</td>
          <td class="paramname"><em>_to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dist</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8cpp_source.html#l00021">21</a> of file <a class="el" href="point2_8cpp_source.html">point2.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae53a981e668209ac088cee240a4aade3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgbmath_1_1point2.html">point2</a> &amp; gbmath::point2::moveAlongNormal </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1normal2.html">normal2</a> &amp;&#160;</td>
          <td class="paramname"><em>normal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>distance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8cpp_source.html#l00007">7</a> of file <a class="el" href="point2_8cpp_source.html">point2.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8ef795f8d695bfdb3efd03982c8c0da3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::point2::operator const float * </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00034">34</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a class="anchor" id="a826e2edfda0396564a66ab43e7423703"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void gbmath::point2::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>v</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00036">36</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae9c6845a4c758e3a08c6057fadba6e7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgbmath_1_1point2.html">point2</a> &amp; gbmath::point2::transform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1mat22.html">mat22</a> &amp;&#160;</td>
          <td class="paramname"><em>m</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8cpp_source.html#l00031">31</a> of file <a class="el" href="point2_8cpp_source.html">point2.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af072417656d83d7e4e8e0bfd85c2e09f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float gbmath::point2::x </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00046">46</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a class="anchor" id="af935ad3379bb0a7c14cf784be871f939"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float gbmath::point2::y </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00047">47</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a49cf0663b544b193243cacf21cea5e9c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float gbmath::point2::_x</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00023">23</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a class="anchor" id="acb5e9216106c0197cd952e23d0bb9cd3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float gbmath::point2::_y</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="point2_8h_source.html#l00024">24</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="point2_8h_source.html">point2.h</a></li>
<li><a class="el" href="point2_8cpp_source.html">point2.cpp</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<!--address class="footer"-->
<!--small-->
<br>
&nbsp;&nbsp;&nbsp;<b>Project page:</b> &nbsp;<a target="_blank" href="https://code.google.com/p/gbmath/">https://code.google.com/p/gbmath/</a>&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;<b>Doc page:</b> &nbsp;<a target="_blank" href="http://www.it.ks777.ru/docs">http://www.it.ks777.ru/docs</a>&nbsp;&nbsp;<br>
<br>
Generated on Sat Jul 27 2013 08:09:04 for gbmath by &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
